package com.sweet.entity;

import com.sweet.enums.MessageType;
import io.vertx.core.json.JsonObject;

public class ReceiptMessage {

  private final MessageType type;

  private final String id;

  public ReceiptMessage(MessageType type, String id) {
    this.type = type;
    this.id = id;
  }

  public String toJson() {
    return new JsonObject()
            .put("type", type.name())
            .put("id", id).toString();
  }
}
